package com.localjoycommunity.cpdj.project.system.domain.vo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.localjoycommunity.cpdj.framework.aspectj.lang.annotation.Excel;
import lombok.Data;

import java.util.Date;

/**
 * @Author: aqie
 * @Date: 2020/11/18 0018 上午 9:02
 * @Description:
 */
@Data
public class UserWishHistoryVo {

    private Integer id;
    @Excel(name = "用户名")
    private String name;
    @Excel(name = "已认领微心愿")
    private String title;
    @Excel(name = "认领时间", width = 30, dateFormat = "yyyy-MM-dd HH:mm:ss", type = Excel.Type.EXPORT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date createTime;
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date complateTime;
    private Integer stateCode;

    private String isComplete;

    public String getIsComplete() {
        return stateCode == 7 ? "1" : "0";
    }
}
